<template>
  <div class="about">
    <div class="left"></div>
    <div class="right">
      <div class="list_content">
        <div
          class="content"
          v-for="(item,index) in list"
          :key="index"
        >
          <div class="item item-1">{{ item.title }}</div>
          <div class="item item-2">{{ item.content }}</div>
        </div>
      </div>
    </div>
  </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
import { list } from './data/list'
export default defineComponent({
  name: 'About',
  data () {
    return {
      list
    }
  }
})
</script>

<style lang="scss" scoped>
@mixin boxStyle($bgClole: #fff, $borderColor: #666) {
  background-color: $bgClole;
  border: 1px solid $borderColor;
  border-radius: 10px;
}
.about {
  flex: 1;
  height: 100%;
  padding: 20px;
  display: flex;
  .left {
    width: 300px;
    height: 100%;
    @include boxStyle();
  }
  .right {
    flex: 1;
    height: 100%;
    margin-left: 20px;
    @include boxStyle();
    padding: 20px;
    overflow-x: auto;
    .list_content{
      display: flex;
      flex-wrap: wrap;
      min-width: 500px;
      border-top: 1px solid #e0dfce;
      border-left: 1px solid #e0dfce;
      .content {
        width: 50%;
        display: grid;
        grid-template-columns: 35% 65%;
        grid-template-rows: 30px;
        font-size: 12px;
        .item {
          border-bottom: 1px solid #e0dfce;
          border-right: 1px solid #e0dfce;
          line-height: 30px;
          text-align: center;
        }
      }
    }
  }
}
</style>
